package com.chenfan.mcn.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.chenfan.mcn.constant.NumberFormatCst;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author wulg
 * @date 2021-11-17
 **/
@Data
public class StarRebateContractExportVO implements Serializable {

    private static final long serialVersionUID = -4338025172344372378L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 合同编号
     */
    @Excel(name="合同编号")
    private String contractCode;

    /**
     * 据状态：0_待提交、1_审批中、2_待回款、3_审批拒绝、4_已撤回、5_部分回款、6_已回款、9_已作废
     */
    @Excel(name = "单据状态", replace = {"待提交_0", "审批中_1", "待回款_2", "审批拒绝_3", "已撤回_4", "部分回款_5", "已回款_6", "已作废_9"})
    private Integer approvalStatus;

    /**
     * 当前流程实例ID
     */
    private Long flowId;

    /**
     * 审批状态
     */
    @Excel(name="审批状态")
    private String flowStatusName;

    /**
     * 红人ID
     */
    private Long starId;

    /**
     * 红人昵称
     */
    @Excel(name="红人昵称")
    private String starNickname;

    /**
     * 返点比例
     */
    @Excel(name="返点比例", numFormat = NumberFormatCst.PERCENT)
    private BigDecimal rebateRatio;

    /**
     * 返点金额
     */
    @Excel(name="返点金额")
    private BigDecimal rebateAmount;

    /**
     * 归档状态
     */
    @Excel(name = "归档状态", replace = {"待盖章_0", "待归档_1", "已归档_2"})
    private Integer archivingStatus;

    /**
     * 备注
     */
    @Excel(name="备注")
    private String remark;

    /**
     * 归档编号
     */
    @Excel(name="归档编号")
    private String archivingCode;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createName;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", format = "yyyy/MM/dd HH:mm:ss")
    private Date createDate;

}
